<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/searchform.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<link rel="stylesheet" href="statics/css/BasicData/files.css">
<div  class="layui-fluid">
    <div class="layui-card">
        <div class="header">
            <span>文件</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-xs3">
                    <table class="layui-table" id="flestree" lay-filter="flestree"></table>
                </div>
                <div class="layui-col-xs9">
                    <form class="layui-form" action="" lay-filter="editor-form" id="editor-form">
                        <div class="layui-form-item padding">
                            <div class="layui-inline">
                                <label class="layui-form-label">客户目录名称：</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="wjCatalogCode" property="输入客户目录名称" id="customerdirectoryname" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">文件名称：</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="name" property="输入文件名称" id="filename" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <button type="button" class="layui-btn layui-btn-sm layui-btn-normal" lay-submit  lay-filter="form-search">搜索</button>
                        </div>
                    </form>
                    <table class="layui-table" id="flesid" lay-filter="flestable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="layui-upload" id="attachmentupload" style="display: none;padding: 10px">
    <a type="button" class="layui-btn layui-btn-normal" id="uploadfile">选择文件</a>
    <div class="layui-upload-list">
        <table class="layui-table">
            <thead>
            <tr><th>文件名</th>
                <th>大小</th>
                <th>状态</th>
                <th>操作</th>
            </tr></thead>
            <tbody id="uploadlist"></tbody>
        </table>
    </div>
    <a type="button" class="layui-btn" id="testListAction">开始上传</a>
</div>
<input id = "flesttype" style="display: none;" value="公司文件"/>

<div id="onlinediv" style="display: none;padding: 10px">
    <iframe src="/upload/4/admin/1608469359034/wj/1608469359035.xls" id="online">

    </iframe>
</div>
<script type="text/html" id="flestoolbar">
    {{#  if($('#flesttype').val() != "回收箱" && $('#flesttype').val() != "垃圾箱"){ }}
        <button class="layui-btn layui-btn-sm" data-type="getCheckData" id="uploadfileid" lay-event="uploadfile">上传</button>
    {{#  }else{ }}
        <button class="layui-btn layui-btn-sm" data-type="getCheckData" id="restorefileid" lay-event="restorefile">恢复</button>
    {{#  } }}
    <button class="layui-btn layui-btn-sm"  lay-event="deluser">下载</button>
</script>
<script type="text/html" id="flestreetoolbar">
    <div class="flestreetoolbardiv">
        <button class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="newuser"><i class="layui-icon layui-icon-addition"></i>添加</button>
        <button class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="deluser"><i class="layui-icon layui-icon-delete"></i>删除</button>
        <input type="text" name="filename" id="treename" autocomplete="off" class="layui-input">
        <a type="button" class="layui-btn layui-btn-sm layui-btn-normal" id="search">搜索</a>
    </div>
</script>
<script type="text/html" id="flestreeeditor">
    <%--types 0 为主目录隐藏添加删除--%>
    {{#  if(d.types != 0){ }}
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="editor">修改</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{#  } }}
</script>
<script type="text/html" id="fleseditor">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/js/BasicData/files.js"></script>